Skip to content

Conversation

benrr101
Copy link
Contributor

@benrr101 benrr101 commented Jul 9, 2025

Description

Due to legal reasons, we have to take a change to the SqlDecimal type workarounds in netfx.

Issues

N/A

Testing

This is a drop-in replacement for the existing method, CI should successfully verify.

@Copilot Copilot AI review requested due to automatic review settings July 9, 2025 17:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Backport of the .NET 6.0 change to simplify how SqlDecimal data fields are extracted in the netfx build, replacing the old serialization-based decomposer with a direct call to SqlDecimal.Data.

  • Removed complex serialization/DynamicMethod-based decomposer for SqlDecimal
  • Added a straightforward SqlDecimalExtractData implementation using Data property
  • Cleaned up unused usings and added XML doc comments and links
Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlTypes/SqlTypeWorkarounds.netfx.cs:137

  • [nitpick] Add unit tests for SqlDecimalExtractData, especially for the SqlDecimal.Null case and typical non-null values, to verify that data fields are correctly extracted and nulls are handled safely.
        internal static void SqlDecimalExtractData(

@benrr101 benrr101 requested a review from a team July 9, 2025 17:13
@paulmedynski paulmedynski added this to the 6.0.3 milestone Jul 16, 2025
@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mdaigle mdaigle self-assigned this Aug 26, 2025
@paulmedynski paulmedynski self-assigned this Aug 29, 2025
@benrr101 benrr101 changed the title Backport 6.0 | SqlDecimal Extract Data [6.0] SqlDecimal Extract Data Sep 3, 2025
@mdaigle
Copy link
Contributor

mdaigle commented Sep 30, 2025

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.58%. Comparing base (90bc83c) to head (2c610f8).
⚠️ Report is 4 commits behind head on release/6.0.

Additional details and impacted files
@@               Coverage Diff                @@
##           release/6.0    #3466       +/-   ##
================================================
+ Coverage        72.73%   92.58%   +19.84%     
================================================
  Files              285        6      -279     
  Lines            59162      310    -58852     
================================================
- Hits             43034      287    -42747     
+ Misses           16128       23    -16105     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore ?
netfx ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants